package com.sokal.easycare.modules.position.entity;

import com.sokal.easycare.modules.sys.entity.MainUser;
import org.hibernate.validator.constraints.Length;

import com.sokal.easycare.common.persistence.DataEntity;

/**
 * 岗位申请Entity
 * @author yangmin
 * @version 2017-04-24
 */
public class DutyApply extends DataEntity<DutyApply> {
	
	private static final long serialVersionUID = 1L;
	private MainUser user;		// 申请人
	private String dutyType;		// 岗位
	private String state;		// 审核状态
	
	public DutyApply() {
		super();
	}

	public DutyApply(String id){
		super(id);
	}

	public MainUser getUser() {
		return user;
	}

	public void setUser(MainUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=3, message="岗位长度必须介于 0 和 3 之间")
	public String getDutyType() {
		return dutyType;
	}

	public void setDutyType(String dutyType) {
		this.dutyType = dutyType;
	}
	
	@Length(min=0, max=3, message="审核状态长度必须介于 0 和 3 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}